@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './common.scss';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#crm-app {
  height: 100%;
}
.app-crm-page{
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.app-crm-page.is-micro-app{
  // height: calc(100vh - 124px);
  min-height: calc(100vh - 124px);
  .app-header{
    display: none;
  }
  .app-container{
    padding-left: 0;
    height: 100%;
    .app-content{
      padding: 0px;
      overflow: hidden;
    }
  }
}
.app-header{
  height: 50px;
  background-color: $--color-primary;
  flex-shrink: 0;
  line-height: 50px;
  padding-left: 20px;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
}
.app-container{
  position: relative;
  display: flex;
  flex-direction: row;
  padding-left: 200px;
  height: calc(100% - 50px);
  .app-silder{
    position:absolute;
    height: 100%;
    top: 0;
    left: 0;
    width: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    // border-right:1px solid #1890ff;
    box-shadow:2px 0px 6px #e7e7ed;
    .el-menu{
      height: 100%;
    }
    .el-menu-item.is-active{
      background-color: #f0f9ff;
      border-right: 4px  solid $--color-primary;
    }
  }
  .app-content{
    background-color: #f5f6f7;
    flex: 1;
    padding: 20px;
    overflow-y: auto;

    .crm-page{
      height: 100%;
      display: flex;
      flex-direction: column;

    }
    .page-header{
      border-left: 6px solid $--color-primary;
      font-weight:700;
      color:#333333;
      font-size:20px;
      height: 20px;
      line-height: 20px;
      padding-left: 10px;
      flex-shrink: 0;
      margin-bottom: 20px;

    }
    .page-content{
      // flex: 1;
      background-color:#ffffff;
      border-radius:8px;
      box-shadow:0px 2px 8px #e8e8e8;
      padding: 20px;
      &.transparent{
        background-color: transparent;
        box-shadow:none;
        padding: 0;
      }
      .table-btns{
        padding-bottom: 10px;
        .align-right{
          text-align: right;
        }



      }

    }
  }
  .page-card{
    background-color:#ffffff;
    border-radius:8px;
    box-shadow:0px 2px 8px #e8e8e8;
    margin-bottom: 20px;
    padding:  20px;
    &.pd10{
      padding-bottom: 10px;
    }
    .card-title{
      border-bottom: 1px solid #e5e5e5;

      height: 50px;
      line-height: 50px;
      display: flex;
      align-items: center;
      justify-content: space-between;
       .right-btns{

       }
        
      

    }
    .back-btn.el-button--text{
      color:#666666;
      &:hover{
        color:  $--color-primary;
      }
    }
    .page-card-content{


    }
    .link-btn{
      padding-top: 20px;
      text-align: center;
      color: $--color-primary;
      .all-link {      
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        cursor: pointer;
        &:hover{
          color: $--color-primary;
          text-decoration: underline;
        }
       }

    }
    
    .item-title{
      border-left: 3px solid $--color-primary;
      padding-left: 7px;
      font-size:16px;
      font-weight: 500;
      position: relative;
      &.small-card-title{
        display: flex;
        justify-content: space-between;
        .page-card-amount{
          margin-left: 20px;
          font-size: 12px;
          color: #666;

        }     
      }
      &.no-border{
        border: none;

      }
      .title-right{
        .new-icon{
          // border-right: 1px solid #666;
          padding: 0 5px;
          margin-right: 5px;
          cursor: pointer;
          font-size: 14px;
          color: $--color-primary;
          &:hover{
            opacity: 0.9;
          }
        }

      }

      .all-link {      
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        cursor: pointer;
        &:hover{
          color: $--color-primary;
        }
       }
    }
    .card-item{
      padding-top: 20px;
      .no-data{
        height: 160px;

      }
      .el-col{
        padding-bottom: 20px;
      }
      .title{
        color: #333;
        font-weight: bold;

      }
      .content{
        color: #666;
      }
      .card-item-list{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        .card-item-list-item{
          background-color:#f5f6f7;
          display: flex;
          flex-direction: column;
          width: 48%;
          flex-shrink: 0;
          padding: 20px;
          .list-item-title{
            display: flex;
            align-items: center;
            font-weight:700;
            color:$--color-primary;
            font-size:14px;
            img{
              width: 24px;
              height: 24px;
              margin-right: 10px;
            }
            .name-link{
              cursor: pointer;
              &:hover{
                text-decoration: underline;
                opacity: 0.9;
              }
            }
          }
          .list-item-row{
            height: 32px;
            line-height: 32px;
            display: flex;
            align-items: center;

            .item-row-title{
              width: 100px;
              text-align: left;
              color: #333;

            }
            .item-row-content{
              flex: 1;
              color:#666666;
              .name-link{
                cursor: pointer;
                color:$--color-primary;
                &:hover{
                  text-decoration: underline;
                  opacity: 0.9;
                }
              }

            }
          }
        }
      }
    }
  }
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

aside {
  background: #eef1f6;
  padding: 8px 24px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: block;
  line-height: 32px;
  font-size: 16px;
  font-family: Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,SimSun,sans-serif;
  color: #2c3e50;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

//main-container全局样式
// .app-container {
// }

.app-wrapper.isInQiankun{
  .app-main{
    margin-top: 0 !important;
  }
  .fixed-header{
    display: none;
  }
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 30px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}
.el-dialog{
  margin-bottom: 50px;
  border-radius: 8px;
  .el-dialog__header{
    border-bottom: 1px solid #e5e5e5;
    .el-dialog__title{
      color: #333;
    }
  }

}
.card-title{
  color: #333;
  font-size: 14px;
  padding-bottom: 10px;
  font-weight: bold;
}
.card-content{
  font-size: 14px;
  box-shadow: none;
  .el-row{
    padding-bottom: 10px;
    &:last-child{
      padding-bottom: 0;
    }
  }
  .el-col{
    padding-bottom: 10px;
    display: flex;
    .card-info-title{
      flex-shrink: 0;
    }
  }

}
.card-info-title{
  width: 150px;
  text-align: right;
  padding-right: 5px;
  display: inline-block;
}
.page-back{
  text-align: right;
}
.page-search{
  .el-col{
    display: flex;
    align-items: center;
    padding-bottom: 10px;
  }
  .search-title{
    width: 100px;
    text-align: right;
    padding-right: 5px;
    font-size: 14px;
    flex-shrink: 0;

  }
  .align-right{
    text-align: right;
    justify-content: flex-end;
  }
  .page-table{
    padding-top: 10px;
  }

}
.page-footer{
  position: relative;
  text-align: right;
  .tips{
    top: 10px;
    left: 0;
    position: absolute;
    color:red ;
    font-size: 12px;

  }
}

.el-table .shopNameLink {
  color: #1890ff;
 cursor: pointer;
 &:hover {
   color: rgba(24, 144, 255, 0.8);
 }
}


.no-data{
  display: flex;
  flex-direction: column;
  align-items: center;
  color:#999999;
  font-size:14px;
  img{
    width: 116px;
    height: 76px;
  }
}

.base-table {
  .table-link{
    color: $--color-primary;
    text-decoration: none;
    &:hover{
      opacity: 0.9;
      text-decoration: none;

    }
  }
  .table-opt-col{
    .el-button.el-button--text{
      padding-top: 0;
      padding-bottom: 0;
    }
  }
}
.el-table .is-required-cloum{

  &::before{
      content: "*";
      color: #ff4d4f;
      margin-right: 4px;
  }
 
  
}
.el-table{
  .cus-item-error{
    color: #ff4d4f;
    font-size: 12px;
    line-height: 14px;
  }
}



//layout 样式
.app-link{
  color: $--color-primary;
  cursor: pointer;

  &:hover{
    opacity: 0.9;
    text-decoration: underline;
  }
  &.noline:hover{
    text-decoration: none;
  }
}
.vb-approve-dialog{
  .el-dialog__body{
    background-color: #fff;
    padding-top: 0;
    padding: 0;
   
  }
  .vb-approve-body{
    min-height: 500px;
  }
}
.card-item{
  .approve-status{
    padding-bottom: 20px;
    padding-left: 10px;
  }
}


